package com.pf.business.export.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.pf.business.converter.BillTypeConverter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2023/7/15 18:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ExportFillBill {

    /**
     * 账单编号
     */
    private String billNo;

    /**
     * 账单描述信息
     */
    private String billDesc;

    /**
     * 账单类型
     */
    @ExcelProperty(converter = BillTypeConverter.class)
    private Integer billType;

    /**
     * 账单金额
     */
    @NumberFormat("#,###")
    private BigDecimal billAmount;

    /**
     * 账单日期
     */
    @DateTimeFormat("yyyy-MM-dd HH:mm")
    private Date billDate;

    /**
     * 备注
     */
    private String remark;
}
